#define  _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <assert.h>

int My_Strcmp(const char* pa1, const char* pa2)
{
	assert(pa1 != NULL);
	assert(pa2 != NULL);

	while (*pa1 == *pa2)
	{
		if (*pa1 == '\0')
		{
			return 0;
		}
		pa1++;
		pa2++;
	}
	return *pa1-*pa2;
}
int main()
{
	char arr1[10] = "0";
	char arr2[10] = "0";

	gets(arr1);
	gets(arr2);
	int ret = My_Strcmp(arr1,arr2);
	printf("%d\n",ret);

	return 0;
}